package com.example.edu.school.visitor;

import com.example.edu.school.user.impl.Student;
import com.example.edu.school.user.impl.Teacher;

/**
 * 抽象访问者，visit重载个数 = 被访问者具体实现的个数，参数是被访问者具体实现
 */
public interface Visitor {

    void visit(Student student);

    void visit(Teacher teacher);
}
